package cn.haixiang.org.mapper;


import cn.haixiang.org.domain.Department;
import cn.haixiang.org.domain.Employee;
import cn.haixiang.org.query.DepartmentQuery;


import java.util.List;

public interface DepartmentMapper {
    /*查询department所有*/

    List<Department> findAll();
    /*根据id进行查询 */

    Department findById(Long id);

    /*根据id进行修改*/

    void update(Department department);

    /*根据id进行删除*/

    void delete(Long id);

    /*根据用户进行新增*/

    void add(Department department);

    //进行分页查询
    List<Department> queryByPage(DepartmentQuery query);
    //跟据高級查詢條件查詢分頁縂條數
    // 查询条数
    Integer queryByCount(DepartmentQuery query);


    //进行批量删除
    void batchDelete(List<Long> ids);

    //通過id部門查找員工
    List<Employee> findEmpById(Long id);

}
